package cst.a931xmc.yuejian20.Service;

import java.util.List;

import cst.a931xmc.yuejian20.Bean.ActivityBean;
import cst.a931xmc.yuejian20.Bean.ActivityOrderBean;
import cst.a931xmc.yuejian20.Bean.AppBean;
import cst.a931xmc.yuejian20.Bean.AppnumUpdateBean;
import cst.a931xmc.yuejian20.Bean.ClassBean;
import cst.a931xmc.yuejian20.Bean.MasterBean;
import cst.a931xmc.yuejian20.Bean.MatchBean;
import cst.a931xmc.yuejian20.Bean.RegisterBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface HomeService {
    @GET("api/Activity/getActivityList")
    Call<List<ActivityBean>> getActivityList();
    @GET("api/Activity/getActivityDetail")
    Call<ActivityBean> getActivityDetail(@Query("id") int activity_id);
    @GET("api/Activity/updateActivityAppNum")
    Call<AppnumUpdateBean> updateActivityAppNum(@Query("id") int activity_id,
                                                @Query("num") int activity_appnum);

    @GET("api/Activityorder/order")
    Call<AppBean> order(@Query("aid") int activity_id,
                        @Query("name") String activity_name,
                        @Query("pic") String activity_pic,
                        @Query("intro") String activity_intro,
                        @Query("uid") int user_id,
                        @Query("rname") String aorder_rname,
                        @Query("tel") String aorder_tel,
                        @Query("idcard") String aorder_idcard,
                        @Query("num") int aorder_num,
                        @Query("price") String aorder_price);
    @GET("api/Activityorder/getActivityorderList")
    Call<List<ActivityOrderBean>> getActivityorderList(@Query("id") int user_id);
    @GET("api/Activityorder/getActivityorderDetail")
    Call<ActivityOrderBean> getActivityorderDetail(@Query("id") int aorder_id);

    @GET("api/Master/getMasterList")
    Call<List<MasterBean>> getMasterList();
    @GET("api/Master/getMasterDetail")
    Call<MasterBean> getMasterDetail(@Query("id") int master_id);

    @GET("api/Course/getClassListByMaster")
    Call<List<ClassBean>> getClassListByMaster(@Query("id") int master_id);
    @GET("api/Course/getClassListByClub")
    Call<List<ClassBean>> getClassListByClub(@Query("id") int club_id);
    @GET("api/Course/getClassDetail")
    Call<ClassBean> getClassDetail(@Query("id") int class_id);

    @GET("api/Match/getMatchList")
    Call<List<MatchBean>> getMatchList();
    @GET("api/Match/getMatchDetail")
    Call<MatchBean> getMatchDetail(@Query("id") int match_id);
}
